package com.yi.suprise;

import android.app.Application;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.yi.suprise.util.LogUtil;
import com.yi.suprise.util.ToastUtil;

/**
 * Created by zhaoyi on 2016/12/8.
 */

public class YiApplication extends Application{
    private static YiApplication mApplication;
    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this);
        mApplication = this;
        //配置是否显示log
        LogUtil.isDebug = true;

        //配置时候显示toast
        ToastUtil.isShow = true;
    }

    public static YiApplication getIntstance() {
        return mApplication;
    }
}
